package com.nettest.bean;

public class BaseCriteriaVo {
	private int pageNo = 0;
    private int pageSize = 0;
    private String sortField;
    private String descOrAsc;
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getSortField() {
		return sortField;
	}
	public void setSortField(String sortField) {
		this.sortField = sortField;
	}
	public String getDescOrAsc() {
		return descOrAsc;
	}
	public void setDescOrAsc(String descOrAsc) {
		this.descOrAsc = descOrAsc;
	}
	public int getFirstResult() {
		int startNo = (pageNo - 1) * pageSize;
		return startNo;
	}
	public int getMaxResults() {
		return getFirstResult() + pageSize;
	}
}
